package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.sggg.entity.SgOperationRecords;
import org.jeecg.modules.sggg.mapper.SgOperationRecordsMapper;
import org.jeecg.modules.sggg.service.ISgOperationRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 健康币操作记录
 * @Author: jeecg-boot
 * @Date: 2023-03-30
 * @Version: V1.0
 */
@Service
public class SgOperationRecordsServiceImpl extends ServiceImpl<SgOperationRecordsMapper, SgOperationRecords> implements ISgOperationRecordsService {

    @Autowired
    private SgOperationRecordsMapper sgOperationRecordsMapper;

    @Override
    public List<SgOperationRecords> prizeList(String mid, String isMake) {
        return baseMapper.prizeList(mid, isMake);
    }

    @Override
    public List<SgOperationRecords> getOperationRecordsByMId(String memberId, Integer type) {
        return sgOperationRecordsMapper.getOperationRecordsByMId(memberId, type);
    }

    @Override
    public List<SgOperationRecords> getOperationRecordsByMId_(String memberId, Integer type) {
        return sgOperationRecordsMapper.getOperationRecordsByMId_(memberId, type);
    }

    @Override
    public IPage<SgOperationRecords> doctorAuthority(IPage<SgOperationRecords> page, String doctorId, List<String> responsibleAgencies, Integer recordType, String orgCode, String name, String closureTime, String createTime, String roleCode) {
        return sgOperationRecordsMapper.doctorAuthority(page, doctorId, recordType, orgCode,responsibleAgencies, name,closureTime,createTime, roleCode);
    }

//    @Override
//    public IPage<SgOperationRecords> doctorAuthority(IPage<SgOperationRecords> page, String doctorId, Integer recordType, String orgCode, List<String> responsibleAgencies, String name, String closureTime, String createTime, String roleCode) {
//
//    }

    @Override
    public SgOperationRecords numberCount (String doctorId, Integer recordType, String orgCode, String name, String closureTime, String createTime, String roleCode) {
        return sgOperationRecordsMapper.numberCount(doctorId,recordType,orgCode,name,closureTime,closureTime,roleCode);
    }

    @Override
    public Integer getconsumptionCount(String orgCode) {
        return sgOperationRecordsMapper.getconsumptionCount(orgCode);
    }

}
